/*
 *  Copyright (c) 2022 李伟国
 *  online-judge is licensed under Mulan PSL v2.
 *  You can use this software according to the terms and conditions of the Mulan PSL v2.
 *  You may obtain a copy of Mulan PSL v2 at:
 *          http://license.coscl.org.cn/MulanPSL2
 *  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 *  See the Mulan PSL v2 for more details.
 */

package edu.platform.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * judge相关配置
 */
@Component
@ConfigurationProperties(
        prefix = "judge.source"
)
public class ConfigSourceProperties {
    private String testData;  // 测试根目录
    private String onlineJudge;  // acm-online-judge模块所在的地址
    private String languageConfig;  // 语言目录
    private String codeResultRootPath;  // 代码结果生成的根路径

    public String getLanguageConfig() {
        return languageConfig;
    }

    public void setLanguageConfig(String languageConfig) {
        this.languageConfig = languageConfig;
    }

    public String getOnlineJudge() {
        return onlineJudge;
    }

    public void setOnlineJudge(String onlineJudge) {
        this.onlineJudge = onlineJudge;
    }

    public String getTestData() {
        return testData;
    }

    public void setTestData(String testData) {
        this.testData = testData;
    }

    public String getCodeResultRootPath() {
        return codeResultRootPath;
    }

    public void setCodeResultRootPath(String codeResultRootPath) {
        this.codeResultRootPath = codeResultRootPath;
    }
}
